'''
Created on 2013-1-11

@author: hanchen
'''
# encoding: utf-8

from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app

class MainPage(webapp.RequestHandler):
    def get(self):
        name = self.request.get("name")
        #print username
        self.response.headers['Content-Type'] = 'text/plain'
        self.response.out.write('name: %s' % name)
        
    def post(self):
        name = self.request.get("name")
        #print username
        self.response.headers['Content-Type'] = 'text/plain'
        self.response.out.write('name: %s' % name)

application = webapp.WSGIApplication([('/.*', MainPage)], debug=True)

def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
